{include file="application/admin/view/public/header.html" /}
    <body>
        <div class="x-nav">
          	<a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" onclick="location.reload()" title="刷新">
            <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i></a>
        </div>
        <div class="layui-fluid">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body ">
                            <form class="layui-form layui-col-space5" action="">
                                 <div class="layui-inline layui-show-xs-block">
                                    <input type="text" name="name"  placeholder="请输入商品名称" autocomplete="off" class="layui-input">
                                </div>
                                <div class="layui-inline layui-show-xs-block">
                                    <input type="text" name="order_no"  placeholder="请输入订单编号" autocomplete="off" class="layui-input">
                                </div>
                                <div class="layui-inline layui-show-xs-block">
                                    <input type="text" name="outer_trade_no"  placeholder="请输入交易流水号" autocomplete="off" class="layui-input">
                                </div>
                                <div class="layui-inline layui-show-xs-block">
                                    <button class="layui-btn" lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
                                </div>
                            </form>
                        </div>
                        <div class="layui-card-header">
                            <button class="layui-btn" onclick="xadmin.open('添加用户','{:url(\'admin/user/addUser\')}',600,400)"><i class="layui-icon"></i>添加</button>
                            <a class="layui-btn layui-btn-normal" href="{:url('admin/user/userList')}">查看全部</a>
                        </div>
                        <div class="layui-card-body ">
                          <table class="table table-bordered">
                            <thead>
                              <tr>
                                <th>订单编号</th>
                                <th>用户名</th>
                                <th>商品名称</th>
                                <th>商品价格</th>
                                <th>数量</th>
                                <th>支付价格</th>
                                <th>支付时间</th>
                                <th>交易流水号</th>
                                <th>支付状态</th>
                                <th>交易状态</th>
                                <th>地址</th>
                                <th>备注</th>
                                <th>创建时间</th>
                                <th>操作</th>
                              </tr>
                            </thead>
                            <tbody>
                              {volist name="list" id="vo"}
                              <tr>
                                <td>{$vo.order_no}</td>
                                <td>{$vo.username}</td>
                                <td>{$vo.name}</td>
                                <td>{$vo.goods_price}</td>
                                <td>{$vo.number}</td>
                                <td>{$vo.pay_price}</td>
                                <td>
                                    {if $vo.pay_time neq 0}
                                    {$vo.pay_time|date='Y-m-d H:i:s'}
                                    {/if}
                                </td>
                                <td>{$vo.outer_trade_no}</td>
                                <td>
                                    {if $vo.pay_status eq 0} 
                                    <span style="color:orange;">未支付</span>
                                    {elseif $vo.pay_status eq 1 /}
                                    <span style="color:green;">已支付</span>
                                    {else /}
                                    <span style="color:red;">支付失败</span>
                                    {/if}
                                </td>
                                <td>
                                    {if $vo.trade_status eq 0} 
                                    <span style="color:orange;">处理中</span>
                                    {elseif $vo.trade_status eq 1 /}
                                    <span style="color:green;">已发货</span>
                                    {else /}
                                    <span style="color:red;">已支付,但库存不足</span>
                                    {/if}
                                </td>
                                <td>{$vo.address}</td>
                                <td>{$vo.remark}</td>
                                <td>{$vo.create_time|date='Y-m-d H:i:s'}</td>
                                <td>
                                    <a href="javascript:;" onclick="xadmin.open('订单详情','{:url(\'admin/order/orderProperty\')}?id={$vo.id}',800,400)">订单快照</a> |
                                    <a href="">删除</a>
                                </td>
                              </tr>
                              {/volist}
                            </tbody>
                          </table>
                        </div>
                        <div class="layui-card-body ">
                            <div class="page">
                                <div>
      
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div> 
    </body>
</html>